:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #1e293b;
  background-color: #f8fafc;
  font-size: 16px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
}

#root {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

button {
  border-radius: 0.5rem;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  background-color: #f1f5f9;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 2.5rem;
  min-width: 2.5rem;
  box-sizing: border-box;
}

button:hover {
  border-color: #3b82f6;
  transform: translateY(-1px);
}

button:focus,
button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.primary-button {
  background-color: #3b82f6;
  color: white;
}

.primary-button:hover {
  background-color: #2563eb;
}

.secondary-button {
  background-color: #f1f5f9;
  color: #475569;
}

.secondary-button:hover {
  background-color: #e2e8f0;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式布局 */
@media screen and (min-width: 1920px) {
  :root {
    font-size: 18px;
  }
}

@media screen and (min-width: 2560px) {
  :root {
    font-size: 20px;
  }
}

/* 确保内容区域可以滚动 */
.app-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem;
  box-sizing: border-box;
} 